// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from "axios"
import VueAxios from "vue-axios"
//饿了么ui
import ElementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css'
import Vuex from 'vuex'
import store from "./store"


Vue.config.productionTip = false
//配置axios  作用 保存session的会话状态
axios.defaults.withCredentials = true

Vue.use(VueAxios,axios)

Vue.use(ElementUI);

Vue.use(Vuex)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
